package com.pallass.security;

import java.util.Collection;
import java.util.List;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import com.pallass.admin.domain.SysResource;

public class CustomerUser extends User {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5509403915037209006L;

	private Integer id;

	private List<SysResource> menus;

	public CustomerUser(Integer id, String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked,
			Collection<? extends GrantedAuthority> authorities) {
		super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
		this.id = id;
	}

	public CustomerUser(Integer id, String username, String password, Collection<? extends GrantedAuthority> authorities) {
		super(username, password, authorities);
		this.id = id;
	}

	public CustomerUser(Integer id, String username, String password, Collection<? extends GrantedAuthority> authorities, List<SysResource> menus) {
		super(username, password, authorities);
		this.menus = menus;
		this.id = id;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public List<SysResource> getMenus() {
		return menus;
	}

	public void setMenus(List<SysResource> menus) {
		this.menus = menus;
	}

}
